home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Think Class Libraries / CDecimalText 1.0 / READ ME < prev    next >
Encoding:
Text File  |  1994-11-30  |  1.2 KB  |  31 lines  |  [TEXT/R*ch]

  1. Name: CDecimalText
  2. Version: 1.0
  3. Category: classes
  4. Contributor: Michael Abramowicz <MBABRAMOWICZ@AMHERST.EDU>
  5. Date: 93-07-06
  6. TCL-Version: 1.1.3
  7. TCL-Language: C++
  8. Copyright: Copyright (C) 1993 Michael Abramowicz. All rights reserved.
  9.  
  10. A subclass of CDialogText that accepts only decimal entries. Any
  11. characters are accepted as the user types, and the entry is checked
  12. at validation. Validation occurs when the user tabs out of the field
  13. or tries to confirm the dialog.
  14.         
  15. CDecimalText can constrain values to a certain number of decimal
  16. places. If 0 decimal places are allowed, then users may enter
  17. only integers. If more than 0 decimal places are allowed, then
  18. users may enter numbers of only so many decimal places. To allow
  19. entry of any number, allow 50 decimal places, for example.
  20.         
  21. SANE is used to to convert the text to a number because it provides
  22. Script Manager support.
  23.         
  24. As a subclass of CDialogText, CDecimalText fields may or not be required
  25. and have a maximum allowed length. Required fields are considered invalid
  26. if left empty. Additionally CDecimalText fields may have a default value,
  27. which is the value returned if the text is empty. They also have a
  28. minimum and maximum allowed value.
  29.         
  30. To use this class, you must include the SANE library in your project.
  31.